package com.tonann.app.domain;

import com.tonann.common.annotation.Excel;
import com.tonann.common.core.domain.BaseEntity;
import com.tonann.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 故障处理对象 app_fault_handle
 * 
 * @author tonann
 * @date 2022-10-15
 */
public class AppFaultHandle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long handleId;

    /** 故障 */
    @Excel(name = "故障")
    private Long faultId;

    /** 是否确认 */
    @Excel(name = "是否确认")
    private String isChecked;

    /**
     * 维护记录
     */
    @Excel(name = "维护记录")
    private String handleRecord;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    private AppFault fault;

    private SysUser user;

    public void setHandleId(Long handleId) {
        this.handleId = handleId;
    }

    public Long getHandleId() {
        return handleId;
    }
    public void setFaultId(Long faultId) 
    {
        this.faultId = faultId;
    }

    public Long getFaultId() 
    {
        return faultId;
    }
    public void setIsChecked(String isChecked) 
    {
        this.isChecked = isChecked;
    }

    public String getIsChecked() 
    {
        return isChecked;
    }
    public void setHandleRecord(String handleRecord) 
    {
        this.handleRecord = handleRecord;
    }

    public String getHandleRecord() 
    {
        return handleRecord;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public AppFault getFault() {
        return fault;
    }

    public void setFault(AppFault fault) {
        this.fault = fault;
    }

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("handleId", getHandleId())
                .append("faultId", getFaultId())
                .append("isChecked", getIsChecked())
                .append("handleRecord", getHandleRecord())
                .append("userId", getUserId())
                .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
